package com.example.demo.service;

import com.example.demo.entity.Users;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServicelmpl implements UserService{
    @Autowired
    private UserMapper userMapper;
    @Override
    public int insertuser(Users user){
       return userMapper.insertuser(user);
    }
    @Override
    public Users getuserbyname(String name){
        return userMapper.getuserbyname(name);
    }
}
